#ifndef __TIMER_H
#define __TIMER_H

#include "stm32f10x.h"

#define SOFTTIMER_TIMER_CLK						RCC_APB1Periph_TIM5
#define SOFTTIMER_TIMER_TIMx					TIM5
#define SOFTTIMER_TIMER_IRQn					TIM5_IRQn
#define SOFTTIMER_TIMER_IRQHandler				TIM5_IRQHandler

#define SERVO_TIMER_CLK							RCC_APB1Periph_TIM6
#define SERVO_TIMER_TIMx						TIM6
#define SERVO_TIMER_IRQn						TIM6_IRQn
#define SERVO_TIMER_IRQHandler					TIM6_IRQHandler

#ifdef DISPLAY_DIGITRON
#define DIGITRON_TIMER_CLK							RCC_APB1Periph_TIM7
#define DIGITRON_TIMER_TIMx							TIM7
#define DIGITRON_TIMER_IRQn							TIM7_IRQn
#define DIGITRON_TIMER_IRQHandler					TIM7_IRQHandler
#endif



void Timer_Init(void);

#endif
